module.exports = {
  // 反向代理
  devServer: {
    open: true,
    port: 8080,
    https: false,
    hotOnly: false, 
    proxy: {
      // 配置跨域
      '/': {
        //target: 'http://platform.dev.zhjl.link/',
        target: 'http://platform.dev.com/',
        ws: true,
        changOrigin: true,
        changeOrigin: true,
        pathRewrite: {
          '^/': ''
        },
      }
    },
    before: app => {}
  },
  configureWebpack: {
    externals: {
      'AMap': 'AMap' // 高德地图配置
    }
  }
};
